{set:$brandId = IFilter::act(IReq::get('id'),'int')}
{set:$brandRow=Api::run('getBrandInfo',$brandId)}

<div class="position"> <span>您当前的位置：</span> <a href="{url:}"> 首页</a> » 商品品牌 </div>
<div class="wrapper clearfix container_2">
	<div class="sidebar f_l">
		<div class="box m_10">
			<div class="title">销售排行榜</div>
			<div class="content">
			  <ul class="ranklist">

		
			  		{foreach:items=Api::run('getGoodsListBrandSum',array('#brandid#',$brandId),10)}
			  	<li class="current">
						<a href="{url:/site/products/id/$item[id]}"><img width="190px" height="190px" alt="{$item['name']}" src="{url:/pic/thumb/img/$item[img]/w/190/h/190}" /></a>
						<a title="{$item['name']}" class="p_name" href="{url:/site/products/id/$item[id]}">{$item['name']}</a>
						<b>￥
						{$item['sell_price']}
						</b>
					</li>
			  	{/foreach}
			  	
			  </ul>
			</div>
		</div>

		<div class="box m_10">
			<div class="title">热卖商品</div>
			<div class="cont">
				<ul class="ranklist">
					{foreach:items=Api::run('getCommendHotBrand',array('#brandid#',$brandId),10)}
					<li class='current'><a href="{url:/site/products/id/$item[id]}">
					<img src="{url:/pic/thumb/img/$item[img]/w/190/h/190}" width="190px" height="190px" />
					</a><a href="{url:/site/products/id/$item[id]}">{$item['name']}</a><b>￥{$item['sell_price']}</b></li>
					{/foreach}
				</ul>
			</div>
		</div>

		<div class="box m_10">
			<div class="title">更多品牌</div>
			<div class="cont">
			  <ul class="textlist_2 clearfix">
			  	{foreach:items=Api::run('getBrandList',10)}
			  	<li><a href="{url:/site/brand_zone/id/$item[id]}">{$item['name']}</a></li>
			  	{/foreach}
			  </ul>
			</div>
		</div>

	</div>

	<div class="main f_r">
		<div class="box m_10">
			<div class="title">品牌专区</div>
			<div class="cont">
				<div class="c_box">
					<dl class="clearfix">
						<dt><img src="{webroot:}{$brandRow['logo']}" width="220" height="100" /></dt>
						<dd><strong>{$brandRow['name']}</strong></dd>
						<dd>官方站点：{$brandRow['url']}</dd>
					</dl>
					<p>{$brandRow['description']}</p>
				</div>
			</div>
		</div>
	<!--排序-->
		<div id="filter">
		<div class="cls"></div>
		<div class="fore1">
			<dl class="order"><dt>排序：</dt>
				{foreach:items=search_goods::getOrderType()}
					{set:$next = search_goods::getOrderValue($key)}
					<dd class="{echo:search_goods::isOrderCurrent($key) ? 'curr':''} {echo:search_goods::isOrderDesc() ? 'down':'up'}">
					<a href="{echo:search_goods::searchUrl('order',$next)}">{$item}</a><b></b></dd>
				{/foreach}
			</dl>
		</div>
		</div>
		<!--排序-->
		
		{set:$goodsObj = search_goods::find(array('brand_id' => $brandId));$resultData = $goodsObj->find();}
		{if:$resultData}
		{set:$listSize = search_goods::getListSize(IFilter::act(IReq::get('show_type')))}
		<ul class="list-h_hl clearfix m_10">
			{foreach:items=$resultData}
			<li index="1" sku="1297041994" selfservice="0">
				<div class="lh-wrap">
					<div class="p-img">
						<a target="_blank" href="{url:/site/products/id/$item[id]}" >
						<img width="220" height="220" alt="{$item['name']}" src="{url:/pic/thumb/img/$item[img]/w/220/h/220}" title="{$item['name']}">
						</a>
					</div>
					<div class="p-name">
						<a target="_blank" href="{url:/site/products/id/$item[id]}"  title="{$item['name']}">
						{$item['name']}
						</a>
					</div>
					<div class="p-price">
						<strong>￥{$item['sell_price']}</strong>
						<del>￥{$item['market_price']}</del>
					</div>
					<div class="extra">
						<span class="evaluate"><a target="_blank" href="{url:/site/products/id/$item[id]}">已有{$item['comments']}人评价</a></span>
					</div>
					<div class="btns">
						<a target="_blank" href="{url:/site/products/id/$item[id]}" class="btn-buy">查看详情</a>
						<a href="javascript:void(0);" class="btn-buy" onclick="favorite_add_ajax('{url:/simple/favorite_add}','{$item['id']}',this);">收藏</a>
					</div>
				</div>
				</li>
			{/foreach}
		</ul>
		{$goodsObj->getPageBar()}

		{else:}
		<p class="display_list mt_10" style='margin-top:50px;margin-bottom:50px'>
			<strong class="gray f14">对不起，没有找到相关商品</strong>
		</p>
		{/if}
	</div>
</div>
